package com.example.mobiledatapackage.service;

import com.example.mobiledatapackage.domain.UsingStatus;
import com.example.mobiledatapackage.mapper.UsingStatusMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Date;

@Service
public class UsingStatusService {

    @Autowired
    private UsingStatusMapper usingStatusMapper;

    public UsingStatus selectByPrimaryKey(String phone, Date date) {
        return usingStatusMapper.selectByPrimaryKey(phone, date);
    }

    public UsingStatus selectLatestRecord(String phone) {
        return usingStatusMapper.selectLatest(phone);
    }
}
